package adapter;

import emergency.Fire;
import unit.FireTruck;

public class AFireTruckView extends AUnit implements be.kuleuven.cs.swop.api.IFireTruckView {

	public AFireTruckView(FireTruck firetruck){
		super(firetruck);
	}

	@Override
	public String getCapacity() {
		FireTruck firetruck = (FireTruck) super.getUnit();
		if(firetruck.getMaxFireSize()==Fire.Size.FACILITY)
			return "facility";
		else if (firetruck.getMaxFireSize()==Fire.Size.HOUSE)
			return "house";
		else
			return "local";
	}

}
